<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>我的收入</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
	<c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="${ctx}/assets/css/style.css?v=2.3">
    <link rel="stylesheet" href="${ctx}/assets/css/index.css?v=2.3">
</head>
<body class="shouru-bg">
<header data-am-widget="header" class="am-header am-header-default am-header-fixed am-border-bottom">
    <div class="am-header-left am-header-nav">
        <a onclick="history.go(-1)"> <i class="icon_8"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        我的收入
    </h1>
    <div  class="am-header-right am-header-nav am-text-right font-14" >
        <a href="${ctx}/gotoMyShoulu"> 提现</a>
    </div>
</header>
<section class="" id="amz-main" data-tag="css-nav">
    <div class="am-animation-scale-up" onclick="window.location.href='${ctx}/gotoMinxian?flag=7'" style="background-color: #8de2f7;color: #FFFFFF;height: 120px;width: 120px;text-align: center;border-radius: 50%;position: absolute;top:200%;right:6%;">
        <div class="am-text-sm am-padding-top-lg font-16">近一周收益</div>
        <div style='font-size: 16px;'>&yen;<span id="aWeek" style="font-family: STXinwei">4000.8</span></div>
        <div style="margin-top: -5px"><span class="font-14"  style="padding: 2px 3px;">查看明细</span></div>
    </div>

    <div class="am-animation-scale-up" onclick="window.location.href='${ctx}/gotoMinxian?flag=30'" style="background-color: #66defc;color: #FFFFFF;height: 110px;width: 110px;text-align: center;border-radius: 50%;position: absolute;top:400%;left:6%;">
        <div style="padding-top: 20px" class="am-text-sm font-16">近一月收益</div>
        <div style='font-size:18px;'>&yen;<span id="aMonth" style="font-family: STXinwei">1000.9</span></div>
        <div style="margin-top: -5px"><span class="font-14"  style="padding: 2px 3px;">查看明细</span></div>
    </div>

    <div class="am-animation-scale-down shouyi-1" onclick="window.location.href='${ctx}/gotoMinxian?flag=300'" >
        <div style="padding-top: 20px;font-size: 20px;" >总收益</div>
        <div style='font-size: 20px;margin-top: 10px'>&yen;<span id="total" style="font-family: STXinwei">30000.87</span></div>
        <div style=""><span class="am-text-sm"  style="padding: 2px 3px;">查看明细</span></div>
    </div>

    <div class="am-animation-fade" onclick="window.location.href='${ctx}/gotoMinxian?flag=1'" style="background-color: #7eeae5;color: #FFFFFF;height: 90px;width: 90px;text-align: center;border-radius: 50%;position: absolute;top:850%;left:8%;">
        <div style="padding-top: 10px" class="am-text-sm ">昨天收益</div>
        <div style='font-size: 16px;'>&yen;<span id="zuotian" style="font-family: STXinwei">100.9</span></div>
        <div style="margin-top: -5px"><span class="am-text-xs"  style="padding: 2px 3px;">查看明细</span></div>
    </div>
</section>


<script src="${ctx}/assets/js/jquery.min.js"></script>
<script src="${ctx}/assets/js/amazeui.min.js"></script>
<script>
		var shouyiStr=$.ajax({url:"${ctx}/getShouyi",async:false});
        var shouyiJson=JSON.parse(shouyiStr.responseText);
        
        if(shouyiJson.resultCode=="0"){
        	$("#zuotian").text(shouyiJson.yesterday);
        	$("#aWeek").text(shouyiJson.aWeek);
        	$("#aMonth").text(shouyiJson.aMonth);
        	$("#total").text(shouyiJson.total);
        }
</script>

</body>
</html>